Usage

data class Usage(val name: String, val used: Float, val free: Float, val total: Float, val buffer: Float = 0.0f, val cache: Float = 0.0f, val unit: MemoryStats.MemoryStatsUnit = MemoryStatsUnit.MB) : Parcelable

Usage contains usage information for a storage device.

Constructors

Link copied to clipboard
constructor(name: String, used: Float, free: Float, total: Float, buffer: Float = 0.0f, cache: Float = 0.0f, unit: MemoryStats.MemoryStatsUnit = MemoryStatsUnit.MB)

Properties

Link copied to clipboard
val buffer: Float = 0.0f

The amount of memory used as a buffer.

Link copied to clipboard
val cache: Float = 0.0f

The amount of memory used as cache.

Link copied to clipboard
val free: Float

The amount of free storage available on the device.

Link copied to clipboard

The name of the storage device.

Link copied to clipboard

The total capacity of the storage device.

Link copied to clipboard

The unit of measurement for the storage values (e.g., MB, GB).

Link copied to clipboard
val used: Float

The amount of storage used on the device.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)